package com.yun2.bms.service;

import com.yun2.bms.dao.ICategoryDao;
import com.yun2.bms.dao.impl.CategoryDaoImpl;
import com.yun2.bms.model.Category;

import java.util.List;

/**
 * author: youli
 * qq: 27855162@qq.com
 * date: 2020/5/26
 */

public interface ICategoryService {

    List<Category> getAll();

    Category get(int id);

    int delete(List<Category> list);

    int delete(String ids);


    List<Category> getAllByCategoryName(String categoryName);

    boolean isCategoryNameUnique(String categoryName);

    boolean isCategoryNameUnique(Integer id, String categoryName);

    int edit(Category category);

    int add(Category category);

}
